#include<stdio.h>
#include<string.h>
int convertToInt(char num[30]);
int main()
{
    char num[30];
    gets(num);
    printf("%d", convertToInt(num));
    return 0;
}
int convertToInt(char num[30])
{
    int convert = 0, length;
    int mul = 1;
    int i,m;
    length = strlen(num);
    if (num[0] == '+' || num[0] == '-')
        m = 1;
    else
        m = 0;
   for (i = length - 1; i >= m; i--) {
        convert += (num[i] - '0') * mul;
        mul *= 10;
   }
   if (num[0] == '-')
       convert = -convert;
    
   return convert;
}